package com.itheima.comfig;


import com.itheima.condition.ConditionOnClass;
import com.itheima.condition.UserCondition;
import com.itheima.domain.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Conditional;
import org.springframework.context.annotation.Configuration;

@Configuration
public class UserConfig {

    @Bean
//    @Conditional(UserCondition.class)
    @ConditionOnClass("")
    public User user(){
        return new User();
    }
}
